GBML manual / Camera

camera_bounds_clear

Removes the camera_bounds clamp entirely.

Works differently on Game Boy - The camera on the Game Boy always stays inside the room's picture, so the limits you set are not used.

Works differently on Game Boy Color - The camera on the Game Boy Color always stays inside the room's picture, so the limits you set are not used.

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

camera_bounds_clear()

Returns

Nothing.

Description

Removes the camera_bounds clamp entirely - the camera can then ease or be set to any position, including past what would normally be a room's own edge. Rare in ordinary play (a room's own bounds are usually exactly what you want), but useful for a cutscene or a debug view that deliberately needs to show outside the playable area.

Example

camera_bounds_clear();

Lets the camera move freely, unclamped, until camera_bounds is set again (or the next room load re-establishes its own default).

See also: camera_bounds